.class Lcom/netease/newsreader/activity/CustomColumn$1;
.super Ljava/lang/Object;
.source "CustomColumn.java"

# interfaces
.implements Lcom/netease/newsreader/util/DragableListView$DropListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/CustomColumn;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/CustomColumn;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/CustomColumn;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    .line 236
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public drop(II)V
    .locals 8
    .parameter "from"
    .parameter "to"

    .prologue
    .line 240
    iget-object v6, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v6}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v6

    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v5

    .line 241
    .local v5, topCount:I
    iget-object v6, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v6}, Lcom/netease/newsreader/activity/CustomColumn;->access$1(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v6

    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v2

    .line 242
    .local v2, moreCount:I
    sub-int v0, p1, v5

    .line 243
    .local v0, f:I
    sub-int v3, p2, v5

    .line 245
    .local v3, t:I
    const/4 v1, 0x0

    .line 246
    .local v1, item:Ljava/lang/Object;
    const/4 v4, 0x0

    .line 248
    .local v4, tmpData:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    if-gtz v0, :cond_2

    .line 249
    iget-object v6, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v6}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v6

    add-int/lit8 v7, p1, -0x1

    invoke-virtual {v6, v7}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    .line 250
    iget-object v6, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v6}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v4

    .line 258
    .end local v1           #item:Ljava/lang/Object;
    :cond_0
    :goto_0
    if-eqz v4, :cond_1

    .line 259
    const/4 v6, 0x1

    if-gt v3, v6, :cond_5

    if-lez p2, :cond_5

    .line 260
    invoke-virtual {v4, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    .line 261
    if-ge p1, p2, :cond_3

    .line 262
    iget-object v6, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v6}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v6

    add-int/lit8 v7, p2, -0x2

    check-cast v1, Ljava/util/HashMap;

    invoke-virtual {v6, v7, v1}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    .line 278
    :cond_1
    :goto_1
    iget-object v6, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v6}, Lcom/netease/newsreader/activity/CustomColumn;->access$2(Lcom/netease/newsreader/activity/CustomColumn;)Lcom/netease/newsreader/util/BasePageViewAdapter;

    move-result-object v6

    invoke-virtual {v6}, Lcom/netease/newsreader/util/BasePageViewAdapter;->notifyDataSetChanged()V

    .line 279
    iget-object v6, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v6}, Lcom/netease/newsreader/activity/CustomColumn;->access$3(Lcom/netease/newsreader/activity/CustomColumn;)Lcom/netease/newsreader/util/BasePageViewAdapter;

    move-result-object v6

    invoke-virtual {v6}, Lcom/netease/newsreader/util/BasePageViewAdapter;->notifyDataSetChanged()V

    .line 280
    iget-object v6, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v6}, Lcom/netease/newsreader/activity/CustomColumn;->access$4(Lcom/netease/newsreader/activity/CustomColumn;)Lcom/netease/newsreader/util/MergeAdapter;

    move-result-object v6

    invoke-virtual {v6}, Lcom/netease/newsreader/util/MergeAdapter;->notifyDataSetChanged()V

    .line 281
    return-void

    .line 252
    .restart local v1       #item:Ljava/lang/Object;
    :cond_2
    add-int/lit8 v6, v0, -0x2

    if-ltz v6, :cond_0

    add-int/lit8 v6, v0, -0x2

    if-gt v6, v2, :cond_0

    .line 253
    iget-object v6, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v6}, Lcom/netease/newsreader/activity/CustomColumn;->access$1(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v6

    add-int/lit8 v7, v0, -0x2

    invoke-virtual {v6, v7}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    .line 254
    iget-object v6, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v6}, Lcom/netease/newsreader/activity/CustomColumn;->access$1(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v4

    goto :goto_0

    .line 263
    .end local v1           #item:Ljava/lang/Object;
    :cond_3
    add-int/lit8 v6, p2, -0x2

    iget-object v7, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v7}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v7

    invoke-virtual {v7}, Ljava/util/ArrayList;->size()I

    move-result v7

    if-le v6, v7, :cond_4

    .line 264
    iget-object v6, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v6}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v6

    check-cast v1, Ljava/util/HashMap;

    invoke-virtual {v6, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 266
    :cond_4
    iget-object v6, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v6}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v6

    add-int/lit8 v7, p2, -0x1

    check-cast v1, Ljava/util/HashMap;

    invoke-virtual {v6, v7, v1}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    goto :goto_1

    .line 267
    :cond_5
    add-int/lit8 v6, v3, -0x2

    if-ltz v6, :cond_1

    add-int/lit8 v6, v3, -0x2

    if-gt v6, v2, :cond_1

    .line 268
    invoke-virtual {v4, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    .line 269
    if-ge p1, p2, :cond_6

    add-int/lit8 v6, v0, -0x2

    if-ltz v6, :cond_6

    add-int/lit8 v6, v0, -0x2

    if-gt v6, v2, :cond_6

    .line 270
    iget-object v6, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v6}, Lcom/netease/newsreader/activity/CustomColumn;->access$1(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v6

    add-int/lit8 v7, v3, -0x3

    check-cast v1, Ljava/util/HashMap;

    invoke-virtual {v6, v7, v1}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    goto/16 :goto_1

    .line 271
    :cond_6
    add-int/lit8 v6, v3, -0x2

    iget-object v7, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v7}, Lcom/netease/newsreader/activity/CustomColumn;->access$1(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v7

    invoke-virtual {v7}, Ljava/util/ArrayList;->size()I

    move-result v7

    if-le v6, v7, :cond_7

    .line 272
    iget-object v6, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v6}, Lcom/netease/newsreader/activity/CustomColumn;->access$1(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v6

    check-cast v1, Ljava/util/HashMap;

    invoke-virtual {v6, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_1

    .line 274
    :cond_7
    iget-object v6, p0, Lcom/netease/newsreader/activity/CustomColumn$1;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v6}, Lcom/netease/newsreader/activity/CustomColumn;->access$1(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v6

    add-int/lit8 v7, v3, -0x2

    check-cast v1, Ljava/util/HashMap;

    invoke-virtual {v6, v7, v1}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    goto/16 :goto_1
.end method
